package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.*;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;


public interface EmpService extends IService<Emp> {

    public abstract PageResult<Emp> getEmp(String name, Integer gender, LocalDate begin, LocalDate end, Integer page, Integer pageSize);


    public abstract void insertEmp(Emp emp) throws Exception;

    public abstract void deleteEmp(List<Integer> ids);

    public abstract Emp queryById(Integer id);

    void updateEmp(Emp emp);

    JobOption calcJobCount();

    List<Map<String, Object>> getEmpGenderData();

    //查询所有数据
    List<Emp> queryAllEmp();
    //登录
    LoginInfo login(Emp emp);
    //日志信息的分页查询
    PageResult<OperateLog> getLog(Integer page1, Integer pageSize);
}
